package api;

import java.util.Scanner;

/**
 * @Author admin
 * @Date 2019/3/27 8:25
 */
public class T2 {
    public static void main(String[] args) {
        int big=0;
        int small=0;
        int sz=0;
        int count=0;
        System.out.println("请输入一字符串");
        Scanner sc=new Scanner(System.in);
        String in=sc.nextLine();
        for (int i = 0; i <in.length() ; i++) {
           char c= in.charAt(i);
            if (c >= 'A' && c<='Z')  {
                big++;
            }else if (c>='a'&& c<='z'){
                small++;
            }else if (c>='0'&& c<='9'){
                sz++;
            }else {
                count++;
            }
        }
        System.out.println("大写字母出现了"+big+"小写字母出现了"+small+"数字出现了"+sz+"其他出现了"+count);




    }
}
